package com.kgis.fm.business.management.service.impl;

import com.kgis.fm.access.metadata.service.ComponentAccessService;
import com.kgis.fm.access.metadata.service.FeatureAccessService;
import com.kgis.fm.business.management.model.FmMetadata;
import com.kgis.fm.business.management.service.FmMetaDataManagementService;

public class FmMetaDataManagementServiceImpl implements FmMetaDataManagementService {
	private FeatureAccessService featureAccessService;
	private ComponentAccessService componentAccessService;
	public FeatureAccessService getFeatureAccessService() {
		return featureAccessService;
	}
	public void setFeatureAccessService(FeatureAccessService featureAccessService) {
		this.featureAccessService = featureAccessService;
	}
	public ComponentAccessService getComponentAccessService() {
		return componentAccessService;
	}
	public void setComponentAccessService(ComponentAccessService componentAccessService) {
		this.componentAccessService = componentAccessService;
	}
	
	@Override
	public FmMetadata findAllMetadata() {
		FmMetadata metadata=new FmMetadata();
		metadata.setFeatureList(featureAccessService.findAll());
		metadata.setComponentList(componentAccessService.findAll());
		return metadata;
	}
	
}
